************************************************************************************
*** OUTCOME MODELS IN MAIN TEXT --> Second Stage
************************************************************************************
***Age 46 Models***
logit t_out1 i.cond i.sex i.educationCat1 i.TradeUnion1 i.polIntCat i.malaise30 incomeTotal maternal_age_birth1 i.married i.region_birthCat copyDesignStd education_age_mother b1.social_class_parent_birthCat, or

***Age 42 Models***
logit vote42b i.cond i.sex i.educationCat1 i.TradeUnion1 i.polIntCat i.malaise30 social_class42 maternal_age_birth1 i.married i.region_birthCat copyDesignStd education_age_mother b1.social_class_parent_birthCat, or

***Age 30 Models***
logit vote97_age30 i.cond i.sex i.edu26 i.trade_union30 b2.pol_int_30 i.malaise30 finnow30 maternal_age_birth1 i.married i.region_birthCat copyDesignStd education_age_mother b1.social_class_parent_birthCat, or


***Propensity Score Models***
global base "sex maternal_age_birth1 social_class_parent_birthCat married education_age_mother copyDesignStd" 
set seed 123456
sort u

psmatch2 cond12 $base , outcome (t_out1) neighbor(1) caliper(0.05) logit ties
psmatch2 cond13 $base , outcome (t_out1) neighbor(1) caliper(0.05) logit ties

psmatch2 cond12 $base , outcome (vote42b) neighbor(1) caliper(0.05) logit ties
psmatch2 cond13 $base , outcome (vote42b) neighbor(1) caliper(0.05) logit ties

psmatch2 cond12 $base , outcome (vote97_age30) neighbor(1) caliper(0.05) logit ties
psmatch2 cond13 $base , outcome (vote97_age30) neighbor(1) caliper(0.05) logit ties

pstest $base, both graph
************************************************************************************
***SUPPLEMENTARY ANALYSES --> Third Stage
************************************************************************************
***Age 46 Models***
reg t_out1 i.cond i.sex i.educationCat1 i.TradeUnion1 i.polIntCat i.malaise30 incomeTotal maternal_age_birth1 i.married i.region_birthCat copyDesignStd education_age_mother b1.social_class_parent_birthCat, robust

logit t_out1 i.cond i.sex copyDesignStd maternal_age_birth1 b1.social_class_parent_birthCat i.married education_age_mother i.region_birthCat, or

***AGE 46 2015 Turnout Only Models***
logit t_out5 i.cond i.sex i.educationCat1 i.TradeUnion1 i.polIntCat i.malaise30 incomeTotal maternal_age_birth1 i.married i.region_birthCat copyDesignStd education_age_mother b1.social_class_parent_birthCat, or

reg t_out5 i.cond i.sex i.educationCat1 i.TradeUnion1 i.polIntCat i.malaise30 incomeTotal maternal_age_birth1 i.married i.region_birthCat copyDesignStd education_age_mother b1.social_class_parent_birthCat, robust

logit t_out5 i.cond i.sex copyDesignStd maternal_age_birth1 b1.social_class_parent_birthCat i.married education_age_mother i.region_birthCat, or

***Age 42 Models***
reg vote42b i.cond i.sex i.educationCat1 i.TradeUnion1 i.polIntCat i.malaise30 social_class42 maternal_age_birth1 i.married i.region_birthCat copyDesignStd education_age_mother b1.social_class_parent_birthCat, robust

logit vote42b i.cond i.sex copyDesignStd maternal_age_birth1 b1.social_class_parent_birthCat i.married education_age_mother i.region_birthCat, or

***Age 30 Models***
reg vote97_age30 i.cond i.sex i.edu26 i.trade_union30 b2.pol_int_30 i.malaise30 finnow30 maternal_age_birth1 i.married i.region_birthCat copyDesignStd education_age_mother b1.social_class_parent_birthCat, robust

logit vote97_age30 i.cond i.sex copyDesignStd maternal_age_birth1 b1.social_class_parent_birthCat i.married education_age_mother i.region_birthCat, or

***Propensity Score Models - AGE 46 2015 Turnout only***
psmatch2 cond12 $base , outcome (t_out5) neighbor(1) caliper(0.05) logit ties
psmatch2 cond13 $base , outcome (t_out5) neighbor(1) caliper(0.05) logit ties
pstest $base, both graph
